package com.ljc;


import com.ljc.client.ApiPlatformClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("api-platform.client")
@Data
@ComponentScan
public class ApiPlatformClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public ApiPlatformClient ApiPlatformClient() {
        return new ApiPlatformClient(accessKey, secretKey);
    }

}
